home *** CD-ROM | disk | FTP | other *** search
- Path: ralph.vnet.net!usenet
- From: duckula@vnet.net (Len Roberts)
- Newsgroups: comp.lang.rexx
- Subject: Re: Rexx
- Date: Thu, 04 Jan 1996 15:59:22 GMT
- Organization: Vnet Internet Access, Charlotte, NC - info@char.vnet.net
- Distribution: inet
- Message-ID: <4ci7ph$9rv@ralph.vnet.net>
- References: <4cf3bs$dmq@mn5.swip.net>
- NNTP-Posting-Host: anatidae.vnet.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- ptp@hnc.se (Paul Secrett) wrote:
-
- >At the moment I'm trying to get a simple loop to work, and it wont. I can get
- >the .cmd file to execute the .exe file after which it prints to screen "Would
- >you like to rerun the program?" if I write yes here then it should "goto
- >start" and rerun the prog, but it wont, it just exits the .cmd. There is no
- >error message so I don't know what I'm doing wrong. I can write do forever
- >and then ctrl-break, buts thats messy, I'm sure there must be someone out
- >there that can help me with this, if you consider this problem too "easy" for
- >this NG then just mail your help to me at the address below.
-
- >Here is what I'm doing:
-
- >a='x:\path\file.exe :params'
- >b=exit
-
- >a
- >say do you want to rerun the program
- >pull ans
- >if ans ='yes'
- >then do a
- >else do b
- >end
-
- >Regards.Paul ptp@hnc.se TeamOS/2 Member
-
- Try this:
-
- do forever
- a
- say 'Do you want to run the program again?'
- pull ans
- if ans = 'no' then leave
- end
- *rest of exec*
-
- Len Roberts
- duskula@vnet.net
-
-
-